<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOilCardExpressTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('oil_card_express', function (Blueprint $table) {
            $table->increments('id');
            $table->string("order_sn",32)->comment("订单号");
            $table->integer("user_id")->comment("用户ID");
            $table->string("oil_card_no",50)->comment("油卡号");
            $table->string("express_no")->nullable()->comment("运单号");
            $table->string("express_company",50)->nullable()->comment("物流公司");
            $table->string("username",50)->comment("收件人");
            $table->string("phone",50)->comment("联系电话");
            $table->string("address",150)->comment("收货地址");
            $table->decimal("express_fee",10,2)->default(0)->comment("物流费用");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('oil_card_express');
    }
}
